Optimal. Leaf size=82 \[ \frac {2 a (A+3 B) \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {3034, 4098,
3889} \begin {gather*} \frac {2 a (A+3 B) \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3034
Rule 3889
Rule 4098
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x))}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {1}{3} \left ((A+3 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a (A+3 B) \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 56, normalized size = 0.68 \begin {gather*} \frac {2 \sqrt {\cos (c+d x)} (2 A+3 B+A \cos (c+d x)) \sqrt {a (1+\sec (c+d x))} \tan \left (\frac {1}{2} (c+d x)\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 11.90, size = 65, normalized size = 0.79
method | result | size |
default | \(-\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (A \cos \left (d x +c \right )+2 A +3 B \right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{3 d \sin \left (d x +c \right )}\) | \(65\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 141 vs.
\(2 (70) = 140\).
time = 0.85, size = 141, normalized size = 1.72 \begin {gather*} \frac {\sqrt {2} {\left (3 \, \cos \left (\frac {2}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) - 3 \, \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) \sin \left (\frac {2}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right ) + 2 \, \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right )\right )} A \sqrt {a} + 12 \, \sqrt {2} B \sqrt {a} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right )}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.18, size = 64, normalized size = 0.78 \begin {gather*} \frac {2 \, {\left (A \cos \left (d x + c\right ) + 2 \, A + 3 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________